{{partial('public/header')}}
<div class="midder">


    <div class="mc">
    
        <div id="group-info">
            <h1 class="group_tit">{{seo.title}}</h1>
            <div class="group-misc">
                    <a href="javascript:;" class="button-join" rel="nofollow" onClick="$('#select-bar').show()">
                        <span>+我要发言</span>
                    </a>
                    <div id="select-bar" style="display:none" onmouseleave="$('#select-bar').hide()">
                    	<h3>选择小组：</h3>
                        <ul>
                        	{% if myGroups%}
                        	{% for item in myGroups%}
                        		<li><a href="{{url('group/topic/add/'~item['groupid'])}}">{{item['groupname']}}</a></li>
                            {% endfor %}
                            {% else %}
                            <li>你还没有加入任何小组， <a href="{{url('group/manage/create')}}">+申请创建小组</a>&nbsp;&nbsp;&nbsp;<a href="{{url('group/explore/groups')}}">发现小组&gt;&gt;</a></li>
                            {% endif %}
                        </ul>
                    </div>
            </div>
        </div>
            
        <div class="cleft">


            <div class="mod topics">
                <table class="olt">
                    <tbody>
            
            {% for item in arrTopic%}
<tr class="pl">
<td class="td-subject">                                
<a title="{item['title']}" href="{{url('group/topic/'~item['topicid'])}}">
{{sub_str(item['title'], 50)}}
</a>
{% if item['isvideo'] == 1 %}
<img src="{{PUBLIC}}/images/lc_cinema.png" align="absmiddle" title="[视频]" alt="[视频]" />
{% endif %}                
{% if item['istop'] == 1 %}
<img src="{{PUBLIC}}/images/headtopic_1.gif" title="[置顶]" alt="[置顶]" />
{% endif %}
{% if item['addtime'] > (strtotime(date('Y-m-d 00:00:00'))) %}
<img src="{{PUBLIC}}/images/topic_new.gif" align="absmiddle"  title="[新帖]" alt="[新帖]" />
{% endif %} 
{% if item['isphoto'] == 1 %}
<img src="{{PUBLIC}}/images/image_s.gif" title="[图片]" alt="[图片]" align="absmiddle" />
{% endif %} 
{% if item['isattach'] == 1 %}
<img src="{{PUBLIC}}/images/attach.gif" title="[附件]" alt="[附件]" />
{% endif %} 
{% if item['isdigest'] == 1 %}
<img src="{{PUBLIC}}/images/posts.gif" title="[精华]" alt="[精华]" />
{% endif %}
</td>
<td class="td-reply" nowrap="nowrap">{% if item['count_comment'] %}{{item['count_comment']}}回应{% endif %}</if></td>
<td class="td-time" nowrap="nowrap"> {{getTime(item['uptime'],time())}} </td>
<td align="right" class="td-group">
<a href="{{url('group/show/'~item['groupid'])}}">{{sub_str(item['group']['groupname'],16)}}</a>
</td>
</tr>
             {% endfor %}  
                  
                </tbody>
              </table>
            </div>
            
             
            
            <div class="clear"></div>
    
    
    	</div>
    
        <div class="cright" id="cright">   
              
			{{partial('index/my_menu')}}               
        
        </div>
    
    </div><!--//mc-->


</div>                

